//
//  HomePageController.m
//  Doc Bao
//
//  Created by Hai Nguyen on 9/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "HomePageController.h"
#import "Post.h"
#import "PostExtensions.h"

@implementation HomePageController

@synthesize tblView;

- (void) loadHomePage
{
	//load home page
}

- (void) viewDidLoad 
{
	[super viewDidLoad];
	[self.tblView setContentSize:CGSizeMake(320, 940)];
}

- (void)didReceiveMemoryWarning 
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload 
{
  [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
	self.tblView = nil;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 
{
  return 2;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 
{
  return 2;
}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
  if (section == 0) {
    return @"Section 0";
  }
  else {
    return @"Section 1";
  }

}

- (void)dealloc 
{
	self.tblView = nil;
  [super dealloc];
}

@end
